<% form_for(@newsletter) do |f| %>
  <%= f.error_messages %>
  <p>
    <%= f.label :subject %>:
    <%= f.text_field :subject, :size => "40" %>
  </p>
  <p>
    <%= f.label :content, "Introduction" %><br />
    <%= f.text_area :content, :size => "80x4" %>
  </p>
  <div class="sections">
    <h3>Sections</h3>
      <% f.fields_for :newsletter_sections do |section_fields| %>
        <div class="section">
          <%= section_fields.label :title %>:
          <%= section_fields.text_field :title, :size => "40" %><br/>
        
          <%= section_fields.label :content %><br />
          <%= section_fields.text_area :content, :size => "80x5" %><br/>
          <%= section_fields.check_box :_delete %>
          <%= section_fields.label :_delete %>
        </div>
      <% end %>
  </div>
  <p>
    <%= f.check_box :draft %>
    <%= f.label :draft %>
  </p>
  <p>
    <%= f.submit "Save" %>
    <%= check_box_tag 'add_section' %>Add a section
  </p>
<% end %>